package com.itheima.thread.create.demo03;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<Integer> {

    @Override
    public Integer call() throws Exception {

        int result = 0;
        for(int x = 1; x <= 100; x++) {
            result += x;
        }

        return result;

    }
}
